<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head></h:head>
<h:body>
	<ui:composition template="/apps/hotel.xhtml">
        <ui:define name="content">
			<h:form>
				<h:panelGrid columns="2" style="margin-left:auto; margin-right:auto;">
					<h:outputLabel value="First name: " />
					<h:inputText value="#{clientControllerBean.currentClient.firstName}" />
					<h:outputLabel value="Middle name: " />
					<h:inputText value="#{clientControllerBean.currentClient.middleName}" />
					<h:outputLabel value="Last name: " />
					<h:inputText value="#{clientControllerBean.currentClient.lastName}" />
					<h:outputLabel value="User name: *" />
					<h:inputText value="#{clientControllerBean.currentClient.userName}" />
					<h:outputLabel value="Password: *" />
					<h:inputSecret value="#{clientControllerBean.currentClient.password}" />
					<h:outputLabel value="Confirm password: " />
					<h:inputSecret	value="#{clientControllerBean.currentClient.password}" />
					<h:outputLabel value="Email: *" />
					<h:inputText value="#{clientControllerBean.currentClient.email}" />
					<div/>
					<h:commandButton value="Submit" action="#{clientControllerBean.signupClient}" style="margin-top:10px;"/>
				</h:panelGrid>
			</h:form>
        </ui:define>
    </ui:composition>
</h:body>
</html>
